<%--
  Created by IntelliJ IDEA.
  User: 梁大大
  Date: 2021/11/26
  Time: 15:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <div style="text-align: center; margin: 0 auto; width: 800px; height: 600px; background-color: chartreuse " >
        <h3>参数的传递</h3>
        <form action="simpleParams">
            姓名:<input type="text" name="name" ><br>
            年龄:<input type="text" name="age"><br>
            <input type="submit" value="提交简单参数">
        </form>
        <form action="arrayParams">
            爱好:<input type="checkbox" name="likes" value="足球">足球
            <input type="checkbox" name="likes" value="篮球">篮球
            <input type="checkbox" name="likes" value="乒乓球">乒乓球
            <input type="submit" value="提交数组参数">
        </form>
        <form action="pojoParams" method="post">
            姓名:<input type="text" name="name" ><br>
            年龄:<input type="text" name="age"><br>
            爱好:<input type="checkbox" name="likes" value="足球">足球
            <input type="checkbox" name="likes" value="篮球">篮球
            <input type="checkbox" name="likes" value="乒乓球">乒乓球<br>
            <input type="submit" value="提交pojo参数">
        </form>
        <form action="teaParams" method="post">
            姓名:<input type="text" name="name" ><br>
            年龄:<input type="text" name="age"><br>
            学生姓名:<input type="text" name="student.name" ><br>
            学生年龄:<input type="text" name="student.age"><br>
            学生爱好:<input type="checkbox" name="student.likes" value="足球">足球
            <input type="checkbox" name="student.likes" value="篮球">篮球
            <input type="checkbox" name="student.likes" value="乒乓球">乒乓球<br>
            <input type="submit" value="提交tea参数">
        </form>
    </div>
</body>
</html>
